package itheima.chap03;

import java.util.Scanner;

public class HunstHealthy {
    public static void main(String[] args) {
        // 1.录入用户信息
        // 1.1.创建Scanner对象
        Scanner scanner = new Scanner(System.in);
        // 1.2 录入升高
        System.out.print("请输入升高（cm）：");
        short height = scanner.nextShort();
        // 1.3 录入体重
        System.out.print("请输入体重（kg）：");
        double weight = scanner.nextDouble();
        // 1.4 录入年龄
        System.out.print("请输入年龄（岁）：");
        byte age = scanner.nextByte();
        // 1.5 录入性别
        System.out.print("请输入性别（0：男/1：女）：");
        //String sex = scanner.next();
        byte sex = scanner.nextByte();
        // 1.6 录入活动级别
        System.out.print("请输入活动级别（0：久坐/1：轻度/2：中度/3：高度）：");
        //String activityLevel = scanner.next();
        byte activityLevel = scanner.nextByte();


        // 2.打印输出
        System.out.println("用户信息如下o^o:");
        System.out.println("身高：" + height + "cm");
        System.out.println("体重：" + weight + "kg");
        System.out.println("年龄：" + age + "岁");
        System.out.println("性别：" + sex);
        System.out.println("活动级别：" + activityLevel);
    }
}
